﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Search1186Plans.aspx.cs" Inherits="LandandSurvey.Search1186Plans" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Welcome to Lands and Surveys Division Plan Search!
    </h2>
    <hr />
    <p>
        <b>Enter the fields you would like to search by.</b>
    </p>
    <table>
        <tr>
            <td>Parcel Owner:</td>
            <td><asp:TextBox ID="txtParcelOwner" runat="server"></asp:TextBox></td>
            <td>&nbsp</td>
            <td>Locality:</td>
            <td><asp:TextBox ID="txtLocality" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Area:</td>
            <td><asp:DropDownList ID="ddlArea" runat="server"></asp:DropDownList><asp:TextBox CssClass="search-shortfield" ID="txtArea" runat="server"></asp:TextBox></td>
            <td>&nbsp</td>
            <td>Book No:</td>
            <td><asp:TextBox ID="txtBookNo" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Folio:</td>
            <td><asp:TextBox ID="txtFolio" runat="server"></asp:TextBox></td>
            <td>&nbsp</td>
            <td>Ward Sheet:</td>
            <td><asp:DropDownList ID="ddlWardSheet" runat="server">
            </asp:DropDownList>
            <asp:TextBox CssClass="search-shortfield" ID="txtWardSheet" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Ward Sheet New Section:</td>
            <td><asp:TextBox ID="txtWardSheetNewSection" runat="server"></asp:TextBox></td>
            <td>&nbsp</td>
            <td></td>
            <td><asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" /></td>
        </tr>
    </table>
    <br />
    <h3>
        Results</h3>
    <hr />
    <div>
        <asp:GridView ID="gvResults" runat="server" AutoGenerateColumns="False" BackColor="White"
            BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical">
            <AlternatingRowStyle BackColor="#DCDCDC" />
            <Columns>
                <asp:TemplateField HeaderText="Parcel Owner">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblPlanReference"><%# DataBinder.Eval( Container.DataItem, "ParcelOwner" )%></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Locality">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblOwner"><%# DataBinder.Eval( Container.DataItem, "Locality" )%></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Area Acre">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblLocation"><%# DataBinder.Eval( Container.DataItem, "AreaAcre" )%></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Area SF">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblAcreage"><%# DataBinder.Eval( Container.DataItem, "AreaSF" )%></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Area SM">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblSurveyor"><%# DataBinder.Eval( Container.DataItem, "AreaSM" )%></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Area HA">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblSheetNumber"><%# DataBinder.Eval( Container.DataItem, "AreaHA" )%></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Book No">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblDateSigned"><%# DataBinder.Eval( Container.DataItem, "BookNo" )%></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Folio">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblDateSigned"><%# DataBinder.Eval( Container.DataItem, "Folio" )%></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Ward Sheet Old">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblDateSigned"><%# DataBinder.Eval( Container.DataItem, "WardSheetOld" )%></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Ward Sheet New">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblDateSigned"><%# DataBinder.Eval( Container.DataItem, "WardSheetNew" )%></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Ward Sheet New Section">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblDateSigned"><%# DataBinder.Eval( Container.DataItem, "WardSheetNewSection" )%></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#0000A9" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#000065" />
            <EmptyDataTemplate>
                <span>No records found.</span>
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
</asp:Content>
